package com.fuhaiwei.domain.dao.impl;

import javax.transaction.Synchronization;

import org.hibernate.HibernateException;
import org.hibernate.Transaction;
import org.hibernate.engine.transaction.spi.LocalStatus;

public class TransactionMock implements Transaction {

	public boolean wasRolledBack() {
		return false;
	}

	public boolean wasCommitted() {
		return false;
	}

	public void setTimeout(int seconds) {

	}

	public void rollback() {

	}

	public void registerSynchronization(Synchronization synchronization)
			throws HibernateException {

	}

	public boolean isParticipating() {
		return false;
	}

	public boolean isInitiator() {
		return false;
	}

	public boolean isActive() {
		return false;
	}

	public int getTimeout() {
		return 0;
	}

	public LocalStatus getLocalStatus() {
		return null;
	}

	public void commit() {

	}

	public void begin() {

	}
}